﻿using System;
using UnityEngine;

// Token: 0x02000010 RID: 16
public class DiscordButton : MonoBehaviour
{
	// Token: 0x06000043 RID: 67 RVA: 0x00008571 File Offset: 0x00006771
	private void Start()
	{
		if (!GameManager.main.isArena || PlayerPrefs.GetInt("joinedServer") == 1 || Time.time < 600f)
		{
			base.transform.parent.gameObject.SetActive(false);
		}
	}

	// Token: 0x06000044 RID: 68 RVA: 0x000085AE File Offset: 0x000067AE
	public void Join()
	{
		PlayerPrefs.SetInt("joinedServer", 1);
		base.transform.parent.gameObject.SetActive(false);
		Application.OpenURL("https://discord.gg/d8xz6mBAab");
	}

	// Token: 0x06000045 RID: 69 RVA: 0x000085DB File Offset: 0x000067DB
	public void Close()
	{
		PlayerPrefs.SetInt("joinedServer", 1);
		base.transform.parent.gameObject.SetActive(false);
	}
}
